import request from '@/utils/request'

// 查询排班明细列表
export function listSchedulingDailyTimetable(query) {
  return request({
    url: '/dispatch/schedulingDailyTimetable/getListBySchedulingId',
    method: 'get',
    params: query
  })
}

// 查询排班明细详细
export function getSchedulingDailyTimetable(id,place) {
  return request({
    url: '/dispatch/schedulingDailyTimetable/getListByPlace?schedulingId='+id+'&place=' + place,
    method: 'get'
  })
}

// 新增排班明细
export function addSchedulingDailyTimetable(data) {
  return request({
    url: '/dispatch/schedulingDailyTimetable',
    method: 'post',
    data: data
  })
}

// 修改排班明细
export function updateSchedulingDailyTimetable(data) {
  return request({
    url: '/dispatch/schedulingDailyTimetable',
    method: 'put',
    data: data
  })
}

// 删除排班明细
export function delSchedulingDailyTimetable(id) {
  return request({
    url: '/dispatch/schedulingDailyTimetable/' + id,
    method: 'delete'
  })
}

// 修改班次
export function editPlace(data) {
  return request({
    url: 'dispatch/schedulingDailyTimetable/editPlace',
    method: 'post',
    data: data
  })
}


